﻿<UserControl x:Class="ModernUILogViewer.Content.Introduction"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             xmlns:view="clr-namespace:ModernUILogViewer.View"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"                
             xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"                             
             mc:Ignorable="d"              
             d:DesignHeight="300" d:DesignWidth="300">

    <UserControl.Resources>
        <!--<view:CommandReference x:Key="opendemofileCommand" Command="{Binding HomeVM.OpenDemoFile}"/>-->
    </UserControl.Resources>

    <StackPanel Margin="15, 5, 15, 5">
        <Grid>
            <TextBlock HorizontalAlignment="Center">
                        <Hyperlink NavigateUri="{StaticResource apphomepage}" Style="{StaticResource baseHyperlink}">
                            <Image Source="/Modern Log Viewer;component/Assets/logo_text_small.png" Width="200" Height="150" VerticalAlignment="Bottom" />
                        </Hyperlink>
            </TextBlock>
            <Image Source="/Modern Log Viewer;component/Assets/welcome to.png" Width="150" VerticalAlignment="Top" />
        </Grid>
        <Grid Margin="{StaticResource DefaultTopMargin}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="33*"></ColumnDefinition>
                <ColumnDefinition Width="33*"></ColumnDefinition>
                <ColumnDefinition Width="33*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <!--<Border Margin="{StaticResource DefaultMargin}" BorderBrush="{DynamicResource ButtonBorder}" BorderThickness="1" >-->
            <StackPanel Grid.Column="0" Margin="{StaticResource DefaultLeftMargin}">
                <Button>
                    <Hyperlink Style="{StaticResource baseHyperlink}" NavigateUri="{StaticResource appdocumentationpage}">
                        <Image Source="/Modern Log Viewer;component/Assets/online_help.jpg"></Image>
                    </Hyperlink>
                </Button>
                <Border Margin="{StaticResource DefaultMargin}" BorderBrush="{DynamicResource ButtonBorder}" BorderThickness="1" >
                    <TextBlock HorizontalAlignment="Center" Style="{StaticResource Fixed}">HELP ONLINE</TextBlock>
                </Border>
            </StackPanel>
            <StackPanel Grid.Column="1" Margin="{StaticResource DefaultLeftMargin}">
                <Button Command="NavigationCommands.GoToPage" CommandParameter="/Pages/Home.xaml">
                    <Image Source="/Modern Log Viewer;component/Assets/main_page.jpg"></Image>
                </Button>
                <Border Margin="{StaticResource DefaultMargin}" BorderBrush="{DynamicResource ButtonBorder}" BorderThickness="1" >
                    <TextBlock HorizontalAlignment="Center" Style="{StaticResource Fixed}">MAIN</TextBlock>
                </Border>
            </StackPanel>
            <StackPanel Grid.Column="2" Margin="{StaticResource DefaultLeftMargin}">
                <Button Command="{Binding HomeVM.OpenDemoFile}">
                    <!--<Button.Command>
                        <view:CommandGroup>
                            <view:CommandReference Command="{StaticResource opendemofileCommand}" />
                        </view:CommandGroup>
                    </Button.Command>-->
                    <Image Source="/Modern Log Viewer;component/Assets/demo.jpg"></Image>
                </Button>
                <Border Margin="{StaticResource DefaultMargin}" BorderBrush="{DynamicResource ButtonBorder}" BorderThickness="1" >
                    <TextBlock HorizontalAlignment="Center" Style="{StaticResource Fixed}">OPEN SAMPLE</TextBlock>
                </Border>
            </StackPanel>
        </Grid>
    </StackPanel>

    <!--<i:Interaction.Triggers>
        <i:EventTrigger EventName="EventDemoStarted" SourceObject="{Binding HomeVM}">
            <ei:ChangePropertyAction TargetObject="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" PropertyName="ContentSource" Value="/Pages/Home.xaml" />
        </i:EventTrigger>
    </i:Interaction.Triggers>-->
</UserControl>
